<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xml:space="preserve">
<xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>

<xsl:template match="/">
<html>
			<head>
				<title>
					<xsl:value-of select="//FormName"/>
				</title>
			</head>
			<body>
<table cellpadding="3" cellspacing="0" border="1" width="600">
<tbody>
<tr>
	<th colspan="2" bgcolor="#eeeeee">Results From: <xsl:value-of select="//FormName"/></th>
</tr>
<xsl:if test="//Submitted_By !=''">
<tr>
	<td><strong>Submitted  By:</strong></td>
	<td><xsl:value-of select="//Submitted_By"/></td>
</tr>
</xsl:if>
	<xsl:apply-templates select="//Field"/>
</tbody>
</table>
</body>
		</html>
</xsl:template>

<xsl:template match="Field">
<xsl:if test="Answers/Answer !=''">
<tr>
	<td>
		<strong><xsl:value-of select="Question"/>:</strong>
	</td>
	<td>
		<xsl:apply-templates select="Answers/Answer"/>
	</td>
</tr>
</xsl:if>
</xsl:template>

<xsl:template match="Answer">
	<xsl:value-of select="text()" disable-output-escaping="yes"/>
</xsl:template>

</xsl:stylesheet>
